package com.dd.cloud.user.req.pres;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author 86159
 */
@Data
public class PresBasicFrom {

    /**
     * 、
     * 名称
     */
    @NotBlank(message = "名称不能为空")
    @Length(max = 32, message = "名称长度不能超过32个字符")
    private String name;

    /**
     * 备注
     */
    private String remark;


    /**
     * 处方集合
     */
    @Size(min = 1)
    @Valid
    private List<PresBasicDrugReq> presBasicDrugReqList;
}
